package ute.mvc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class SubmittedAssignment {
	@Id
	@Column (length = 20)
	private String submittedAssignmentId;
	private Date submittedDate ;
	@Column (length = 10000)
	private String description;
	private String file;
	private float point;
	@Column (length = 10000)
	private String gradeDescription;
	private String gradeFile;
	
	@ManyToOne
	@JoinColumn (name = "assignment_StudentId", nullable = false)
	private Assignment_Student assignment_Student;

	public String getSubmittedAssignmentId() {
		return submittedAssignmentId;
	}

	public void setSubmittedAssignmentId(String submittedAssignmentId) {
		this.submittedAssignmentId = submittedAssignmentId;
	}

	public Date getSubmittedDate() {
		return submittedDate;
	}

	public void setSubmittedDate(Date submittedDate) {
		this.submittedDate = submittedDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public float getPoint() {
		return point;
	}

	public void setPoint(float point) {
		this.point = point;
	}

	public String getGradeDescription() {
		return gradeDescription;
	}

	public void setGradeDescription(String gradeDescription) {
		this.gradeDescription = gradeDescription;
	}

	public String getGradeFile() {
		return gradeFile;
	}

	public void setGradeFile(String gradeFile) {
		this.gradeFile = gradeFile;
	}

	public Assignment_Student getAssignment_Student() {
		return assignment_Student;
	}

	public void setAssignment_Student(Assignment_Student assignment_Student) {
		this.assignment_Student = assignment_Student;
	}
}
